
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<ui:composition template="template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets">


    <ui:define name="menuDireito">
                    <h:body>
                        <div class="floatRight width73">
                            <h1>Cadastrar encargo</h1>
                            <h2>Informações:</h2>
                            <hr></hr>
                            <h:form>
                                <p>Disciplinas:<br></br>
                                    <h:outputText rendered="true" value="#{encargo.disciplinas}"></h:outputText>
                                </p>
                                <p>Código da Disciplina:<br></br>
                                    <h:outputText rendered="true" value="#{encargo.cod_disciplina}"></h:outputText>
                                </p>
                                <p>Semestre:<br></br>
                                    <h:outputText rendered="true" value="#{encargo.semestre}"></h:outputText>
                                </p>
                                <p>Carga horária:<br></br>
                                    <h:outputText rendered="true" value="#{encargo.ch}"></h:outputText>
                                </p>
                                <p>Professor:<br></br>
                                    <h:outputText rendered="true" value="#{encargo.professor}"></h:outputText>
                                </p>
                                <p>SelectedProfessor<br></br>
                                    <h:outputText rendered="true" value="#{autoCompleteBean.selectedProfessor}"></h:outputText>
                                </p>
                                <div style="text-align: center">
                                    <h:commandButton value="Salvar" action="#{encargo.envia}"></h:commandButton>                               
                                </div>
                            </h:form>

                        </div>
                        <!-- </form>  -->
                    </h:body>
                </ui:define>
</ui:composition>